package com.quartz.config;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class PrintHelloWorldJob {
    //https://cron.qqe2.com
    @Scheduled(cron = "0/3 * * * * ?")
    public void printHelloWorld(){
        System.out.println("----hello world.");
    }
}

